package net.vinote.smart.platform.service.dw.html;

/**
 * input标签的显示形式
 */
public class ImageTag extends HtmlTag {
	private String htmlTemplate = "<div class='imageTag'><img style='#style' src='#value' onclick='showImagePanel(this)'/><input type='hidden' value='#value' #attributes/></div>";

	public ImageTag(HtmlTag htmlTag) {
		super(htmlTag);
	}

	@Override
	protected String getHtmlTemplate() {
		return htmlTemplate;
	}

	@Override
	protected void initPlaceHolder() {
		placeholder.put("#value", getValue());
		placeholder.put("#style", getAttribute("style"));
	}

}
